Integrand size = 23, antiderivative size = 198 \[ \int (c+d x)^4 \csc (a+b x) \sin (3 a+3 b x) \, dx=\frac {3 d^4 x}{2 b^4}-\frac {d (c+d x)^3}{b^2}+\frac {(c+d x)^5}{5 d}-\frac {9 d^3 (c+d x) \cos ^2(a+b x)}{2 b^4}+\frac {3 d (c+d x)^3 \cos ^2(a+b x)}{b^2}+\frac {3 d^4 \cos (a+b x) \sin (a+b x)}{b^5}-\frac {6 d^2 (c+d x)^2 \cos (a+b x) \sin (a+b x)}{b^3}+\frac {2 (c+d x)^4 \cos (a+b x) \sin (a+b x)}{b}+\frac {3 d^3 (c+d x) \sin ^2(a+b x)}{2 b^4}-\frac {d (c+d x)^3 \sin ^2(a+b x)}{b^2} \]
3/2*d^4*x/b^4-d*(d*x+c)^3/b^2+1/5*(d*x+c)^5/d-9/2*d^3*(d*x+c)*cos(b*x+a)^2 /b^4+3*d*(d*x+c)^3*cos(b*x+a)^2/b^2+3*d^4*cos(b*x+a)*sin(b*x+a)/b^5-6*d^2* (d*x+c)^2*cos(b*x+a)*sin(b*x+a)/b^3+2*(d*x+c)^4*cos(b*x+a)*sin(b*x+a)/b+3/ 2*d^3*(d*x+c)*sin(b*x+a)^2/b^4-d*(d*x+c)^3*sin(b*x+a)^2/b^2
Time = 0.43 (sec) , antiderivative size = 128, normalized size of antiderivative = 0.65 \[ \int (c+d x)^4 \csc (a+b x) \sin (3 a+3 b x) \, dx=c^4 x+2 c^3 d x^2+2 c^2 d^2 x^3+c d^3 x^4+\frac {d^4 x^5}{5}+\frac {d (c+d x) \left (-3 d^2+2 b^2 (c+d x)^2\right ) \cos (2 (a+b x))}{b^4}+\frac {\left (3 d^4-6 b^2 d^2 (c+d x)^2+2 b^4 (c+d x)^4\right ) \sin (2 (a+b x))}{2 b^5} \]
c^4*x + 2*c^3*d*x^2 + 2*c^2*d^2*x^3 + c*d^3*x^4 + (d^4*x^5)/5 + (d*(c + d* x)*(-3*d^2 + 2*b^2*(c + d*x)^2)*Cos[2*(a + b*x)])/b^4 + ((3*d^4 - 6*b^2*d^ 2*(c + d*x)^2 + 2*b^4*(c + d*x)^4)*Sin[2*(a + b*x)])/(2*b^5)
Time = 0.44 (sec) , antiderivative size = 198, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.087, Rules used = {4931, 2009}
Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.
\(\displaystyle \int (c+d x)^4 \sin (3 a+3 b x) \csc (a+b x) \, dx\) |
\(\Big \downarrow \) 4931 |
\(\displaystyle \int \left (3 (c+d x)^4 \cos ^2(a+b x)-(c+d x)^4 \sin ^2(a+b x)\right )dx\) |
\(\Big \downarrow \) 2009 |
\(\displaystyle \frac {3 d^4 \sin (a+b x) \cos (a+b x)}{b^5}+\frac {3 d^3 (c+d x) \sin ^2(a+b x)}{2 b^4}-\frac {9 d^3 (c+d x) \cos ^2(a+b x)}{2 b^4}-\frac {6 d^2 (c+d x)^2 \sin (a+b x) \cos (a+b x)}{b^3}-\frac {d (c+d x)^3 \sin ^2(a+b x)}{b^2}+\frac {3 d (c+d x)^3 \cos ^2(a+b x)}{b^2}+\frac {2 (c+d x)^4 \sin (a+b x) \cos (a+b x)}{b}+\frac {3 d^4 x}{2 b^4}-\frac {d (c+d x)^3}{b^2}+\frac {(c+d x)^5}{5 d}\) |
(3*d^4*x)/(2*b^4) - (d*(c + d*x)^3)/b^2 + (c + d*x)^5/(5*d) - (9*d^3*(c + d*x)*Cos[a + b*x]^2)/(2*b^4) + (3*d*(c + d*x)^3*Cos[a + b*x]^2)/b^2 + (3*d ^4*Cos[a + b*x]*Sin[a + b*x])/b^5 - (6*d^2*(c + d*x)^2*Cos[a + b*x]*Sin[a + b*x])/b^3 + (2*(c + d*x)^4*Cos[a + b*x]*Sin[a + b*x])/b + (3*d^3*(c + d* x)*Sin[a + b*x]^2)/(2*b^4) - (d*(c + d*x)^3*Sin[a + b*x]^2)/b^2
3.4.68.3.1 Defintions of rubi rules used
Int[((e_.) + (f_.)*(x_))^(m_.)*(F_)[(a_.) + (b_.)*(x_)]^(p_.)*(G_)[(c_.) + (d_.)*(x_)]^(q_.), x_Symbol] :> Int[ExpandTrigExpand[(e + f*x)^m*G[c + d*x] ^q, F, c + d*x, p, b/d, x], x] /; FreeQ[{a, b, c, d, e, f, m}, x] && Member Q[{Sin, Cos}, F] && MemberQ[{Sec, Csc}, G] && IGtQ[p, 0] && IGtQ[q, 0] && E qQ[b*c - a*d, 0] && IGtQ[b/d, 1]
Time = 1.91 (sec) , antiderivative size = 226, normalized size of antiderivative = 1.14
method | result | size |
risch | \(\frac {d^{4} x^{5}}{5}+c \,d^{3} x^{4}+2 c^{2} d^{2} x^{3}+2 c^{3} d \,x^{2}+c^{4} x +\frac {c^{5}}{5 d}+\frac {d \left (2 b^{2} d^{3} x^{3}+6 b^{2} c \,d^{2} x^{2}+6 b^{2} c^{2} d x +2 b^{2} c^{3}-3 d^{3} x -3 c \,d^{2}\right ) \cos \left (2 x b +2 a \right )}{b^{4}}+\frac {\left (2 d^{4} x^{4} b^{4}+8 b^{4} c \,d^{3} x^{3}+12 b^{4} c^{2} d^{2} x^{2}+8 b^{4} c^{3} d x +2 b^{4} c^{4}-6 b^{2} d^{4} x^{2}-12 b^{2} c \,d^{3} x -6 b^{2} c^{2} d^{2}+3 d^{4}\right ) \sin \left (2 x b +2 a \right )}{2 b^{5}}\) | \(226\) |
default | \(\text {Expression too large to display}\) | \(1000\) |
1/5*d^4*x^5+c*d^3*x^4+2*c^2*d^2*x^3+2*c^3*d*x^2+c^4*x+1/5/d*c^5+1/b^4*d*(2 *b^2*d^3*x^3+6*b^2*c*d^2*x^2+6*b^2*c^2*d*x+2*b^2*c^3-3*d^3*x-3*c*d^2)*cos( 2*b*x+2*a)+1/2*(2*b^4*d^4*x^4+8*b^4*c*d^3*x^3+12*b^4*c^2*d^2*x^2+8*b^4*c^3 *d*x+2*b^4*c^4-6*b^2*d^4*x^2-12*b^2*c*d^3*x-6*b^2*c^2*d^2+3*d^4)/b^5*sin(2 *b*x+2*a)
Time = 0.26 (sec) , antiderivative size = 283, normalized size of antiderivative = 1.43 \[ \int (c+d x)^4 \csc (a+b x) \sin (3 a+3 b x) \, dx=\frac {b^{5} d^{4} x^{5} + 5 \, b^{5} c d^{3} x^{4} + 10 \, {\left (b^{5} c^{2} d^{2} - b^{3} d^{4}\right )} x^{3} + 10 \, {\left (b^{5} c^{3} d - 3 \, b^{3} c d^{3}\right )} x^{2} + 10 \, {\left (2 \, b^{3} d^{4} x^{3} + 6 \, b^{3} c d^{3} x^{2} + 2 \, b^{3} c^{3} d - 3 \, b c d^{3} + 3 \, {\left (2 \, b^{3} c^{2} d^{2} - b d^{4}\right )} x\right )} \cos \left (b x + a\right )^{2} + 5 \, {\left (2 \, b^{4} d^{4} x^{4} + 8 \, b^{4} c d^{3} x^{3} + 2 \, b^{4} c^{4} - 6 \, b^{2} c^{2} d^{2} + 3 \, d^{4} + 6 \, {\left (2 \, b^{4} c^{2} d^{2} - b^{2} d^{4}\right )} x^{2} + 4 \, {\left (2 \, b^{4} c^{3} d - 3 \, b^{2} c d^{3}\right )} x\right )} \cos \left (b x + a\right ) \sin \left (b x + a\right ) + 5 \, {\left (b^{5} c^{4} - 6 \, b^{3} c^{2} d^{2} + 3 \, b d^{4}\right )} x}{5 \, b^{5}} \]
1/5*(b^5*d^4*x^5 + 5*b^5*c*d^3*x^4 + 10*(b^5*c^2*d^2 - b^3*d^4)*x^3 + 10*( b^5*c^3*d - 3*b^3*c*d^3)*x^2 + 10*(2*b^3*d^4*x^3 + 6*b^3*c*d^3*x^2 + 2*b^3 *c^3*d - 3*b*c*d^3 + 3*(2*b^3*c^2*d^2 - b*d^4)*x)*cos(b*x + a)^2 + 5*(2*b^ 4*d^4*x^4 + 8*b^4*c*d^3*x^3 + 2*b^4*c^4 - 6*b^2*c^2*d^2 + 3*d^4 + 6*(2*b^4 *c^2*d^2 - b^2*d^4)*x^2 + 4*(2*b^4*c^3*d - 3*b^2*c*d^3)*x)*cos(b*x + a)*si n(b*x + a) + 5*(b^5*c^4 - 6*b^3*c^2*d^2 + 3*b*d^4)*x)/b^5
Timed out. \[ \int (c+d x)^4 \csc (a+b x) \sin (3 a+3 b x) \, dx=\text {Timed out} \]
Time = 0.28 (sec) , antiderivative size = 244, normalized size of antiderivative = 1.23 \[ \int (c+d x)^4 \csc (a+b x) \sin (3 a+3 b x) \, dx=\frac {{\left (b x + \sin \left (2 \, b x + 2 \, a\right )\right )} c^{4}}{b} + \frac {2 \, {\left (b^{2} x^{2} + 2 \, b x \sin \left (2 \, b x + 2 \, a\right ) + \cos \left (2 \, b x + 2 \, a\right )\right )} c^{3} d}{b^{2}} + \frac {{\left (2 \, b^{3} x^{3} + 6 \, b x \cos \left (2 \, b x + 2 \, a\right ) + 3 \, {\left (2 \, b^{2} x^{2} - 1\right )} \sin \left (2 \, b x + 2 \, a\right )\right )} c^{2} d^{2}}{b^{3}} + \frac {{\left (b^{4} x^{4} + 3 \, {\left (2 \, b^{2} x^{2} - 1\right )} \cos \left (2 \, b x + 2 \, a\right ) + 2 \, {\left (2 \, b^{3} x^{3} - 3 \, b x\right )} \sin \left (2 \, b x + 2 \, a\right )\right )} c d^{3}}{b^{4}} + \frac {{\left (2 \, b^{5} x^{5} + 10 \, {\left (2 \, b^{3} x^{3} - 3 \, b x\right )} \cos \left (2 \, b x + 2 \, a\right ) + 5 \, {\left (2 \, b^{4} x^{4} - 6 \, b^{2} x^{2} + 3\right )} \sin \left (2 \, b x + 2 \, a\right )\right )} d^{4}}{10 \, b^{5}} \]
(b*x + sin(2*b*x + 2*a))*c^4/b + 2*(b^2*x^2 + 2*b*x*sin(2*b*x + 2*a) + cos (2*b*x + 2*a))*c^3*d/b^2 + (2*b^3*x^3 + 6*b*x*cos(2*b*x + 2*a) + 3*(2*b^2* x^2 - 1)*sin(2*b*x + 2*a))*c^2*d^2/b^3 + (b^4*x^4 + 3*(2*b^2*x^2 - 1)*cos( 2*b*x + 2*a) + 2*(2*b^3*x^3 - 3*b*x)*sin(2*b*x + 2*a))*c*d^3/b^4 + 1/10*(2 *b^5*x^5 + 10*(2*b^3*x^3 - 3*b*x)*cos(2*b*x + 2*a) + 5*(2*b^4*x^4 - 6*b^2* x^2 + 3)*sin(2*b*x + 2*a))*d^4/b^5
Leaf count of result is larger than twice the leaf count of optimal. 1255 vs. \(2 (190) = 380\).
Time = 0.44 (sec) , antiderivative size = 1255, normalized size of antiderivative = 6.34 \[ \int (c+d x)^4 \csc (a+b x) \sin (3 a+3 b x) \, dx=\text {Too large to display} \]
1/5*(10*b^4*c^4*cos(b*x + a)*sin(b*x + a) + 40*(b*x + a)*b^3*c^3*d*cos(b*x + a)*sin(b*x + a) - 40*a*b^3*c^3*d*cos(b*x + a)*sin(b*x + a) + 60*(b*x + a)^2*b^2*c^2*d^2*cos(b*x + a)*sin(b*x + a) - 120*(b*x + a)*a*b^2*c^2*d^2*c os(b*x + a)*sin(b*x + a) + 60*a^2*b^2*c^2*d^2*cos(b*x + a)*sin(b*x + a) + 40*(b*x + a)^3*b*c*d^3*cos(b*x + a)*sin(b*x + a) - 120*(b*x + a)^2*a*b*c*d ^3*cos(b*x + a)*sin(b*x + a) + 120*(b*x + a)*a^2*b*c*d^3*cos(b*x + a)*sin( b*x + a) - 40*a^3*b*c*d^3*cos(b*x + a)*sin(b*x + a) + 10*(b*x + a)^4*d^4*c os(b*x + a)*sin(b*x + a) - 40*(b*x + a)^3*a*d^4*cos(b*x + a)*sin(b*x + a) + 60*(b*x + a)^2*a^2*d^4*cos(b*x + a)*sin(b*x + a) - 40*(b*x + a)*a^3*d^4* cos(b*x + a)*sin(b*x + a) + 10*a^4*d^4*cos(b*x + a)*sin(b*x + a) + 5*(b*x + a)*b^4*c^4 + 10*(b*x + a)^2*b^3*c^3*d - 20*(b*x + a)*a*b^3*c^3*d + 10*(b *x + a)^3*b^2*c^2*d^2 - 30*(b*x + a)^2*a*b^2*c^2*d^2 + 30*(b*x + a)*a^2*b^ 2*c^2*d^2 + 5*(b*x + a)^4*b*c*d^3 - 20*(b*x + a)^3*a*b*c*d^3 + 30*(b*x + a )^2*a^2*b*c*d^3 - 20*(b*x + a)*a^3*b*c*d^3 + (b*x + a)^5*d^4 - 5*(b*x + a) ^4*a*d^4 + 10*(b*x + a)^3*a^2*d^4 - 10*(b*x + a)^2*a^3*d^4 + 5*(b*x + a)*a ^4*d^4 + 10*b^3*c^3*d*cos(b*x + a)^2 + 30*(b*x + a)*b^2*c^2*d^2*cos(b*x + a)^2 - 30*a*b^2*c^2*d^2*cos(b*x + a)^2 + 30*(b*x + a)^2*b*c*d^3*cos(b*x + a)^2 - 60*(b*x + a)*a*b*c*d^3*cos(b*x + a)^2 + 30*a^2*b*c*d^3*cos(b*x + a) ^2 + 10*(b*x + a)^3*d^4*cos(b*x + a)^2 - 30*(b*x + a)^2*a*d^4*cos(b*x + a) ^2 + 30*(b*x + a)*a^2*d^4*cos(b*x + a)^2 - 10*a^3*d^4*cos(b*x + a)^2 - ...
Time = 26.45 (sec) , antiderivative size = 344, normalized size of antiderivative = 1.74 \[ \int (c+d x)^4 \csc (a+b x) \sin (3 a+3 b x) \, dx=\frac {\frac {3\,d^4\,\sin \left (2\,a+2\,b\,x\right )}{2}+b^5\,c^4\,x+b^4\,c^4\,\sin \left (2\,a+2\,b\,x\right )+\frac {b^5\,d^4\,x^5}{5}+2\,b^3\,c^3\,d\,\cos \left (2\,a+2\,b\,x\right )+2\,b^5\,c^3\,d\,x^2+b^5\,c\,d^3\,x^4-3\,b^2\,c^2\,d^2\,\sin \left (2\,a+2\,b\,x\right )+2\,b^3\,d^4\,x^3\,\cos \left (2\,a+2\,b\,x\right )+2\,b^5\,c^2\,d^2\,x^3-3\,b^2\,d^4\,x^2\,\sin \left (2\,a+2\,b\,x\right )+b^4\,d^4\,x^4\,\sin \left (2\,a+2\,b\,x\right )-3\,b\,c\,d^3\,\cos \left (2\,a+2\,b\,x\right )-3\,b\,d^4\,x\,\cos \left (2\,a+2\,b\,x\right )+6\,b^4\,c^2\,d^2\,x^2\,\sin \left (2\,a+2\,b\,x\right )-6\,b^2\,c\,d^3\,x\,\sin \left (2\,a+2\,b\,x\right )+4\,b^4\,c^3\,d\,x\,\sin \left (2\,a+2\,b\,x\right )+6\,b^3\,c^2\,d^2\,x\,\cos \left (2\,a+2\,b\,x\right )+6\,b^3\,c\,d^3\,x^2\,\cos \left (2\,a+2\,b\,x\right )+4\,b^4\,c\,d^3\,x^3\,\sin \left (2\,a+2\,b\,x\right )}{b^5} \]
((3*d^4*sin(2*a + 2*b*x))/2 + b^5*c^4*x + b^4*c^4*sin(2*a + 2*b*x) + (b^5* d^4*x^5)/5 + 2*b^3*c^3*d*cos(2*a + 2*b*x) + 2*b^5*c^3*d*x^2 + b^5*c*d^3*x^ 4 - 3*b^2*c^2*d^2*sin(2*a + 2*b*x) + 2*b^3*d^4*x^3*cos(2*a + 2*b*x) + 2*b^ 5*c^2*d^2*x^3 - 3*b^2*d^4*x^2*sin(2*a + 2*b*x) + b^4*d^4*x^4*sin(2*a + 2*b *x) - 3*b*c*d^3*cos(2*a + 2*b*x) - 3*b*d^4*x*cos(2*a + 2*b*x) + 6*b^4*c^2* d^2*x^2*sin(2*a + 2*b*x) - 6*b^2*c*d^3*x*sin(2*a + 2*b*x) + 4*b^4*c^3*d*x* sin(2*a + 2*b*x) + 6*b^3*c^2*d^2*x*cos(2*a + 2*b*x) + 6*b^3*c*d^3*x^2*cos( 2*a + 2*b*x) + 4*b^4*c*d^3*x^3*sin(2*a + 2*b*x))/b^5